﻿using System;
using System.Security.Cryptography.X509Certificates;


namespace invokingClassMember
{
    class Program
    {    
        public int ID { get; set; }
        public string Name { get; set; }
          
        public double Price { get; set; }

        public void SetBook(int id, string name, double price)
        {
            ID = id;
            Name = name;
            Price = price;          
        }
        public void PrintMsg()
        {
            Console.WriteLine("图书的编号是：" + ID);
            Console.WriteLine("图书的名称是: " + Name);
            Console.WriteLine("图书的价格是：" + Price);
        }
    }   
        }
        
    
